package com.peng.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peng.model.TActivity;
import com.peng.model.TUser;
import com.peng.query.ActivityQuery;
import com.peng.service.TActivityService;
import com.peng.mapper.TActivityMapper;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
* @author Love-ovo
* @description 针对表【t_activity(市场活动表)】的数据库操作Service实现
* @createDate 2025-03-14 21:28:14
*/
@Service
public class TActivityServiceImpl extends ServiceImpl<TActivityMapper, TActivity>
    implements TActivityService{
    @Autowired
    private TActivityMapper tActivityMapper;

    @Override
    public IPage<TActivity> selectActivityIPage(ActivityQuery activityQuery, Page<TActivity> tActivityPage) {
        return tActivityMapper.selectActivityIPage(activityQuery,tActivityPage);
    }

    @Override
    public TActivity getActivityById(Integer id) {
        return tActivityMapper.getActivityById(id);
    }

    @Override
    public List<TActivity> getOngoingActivity() {
        return tActivityMapper.getOngoingActivity();
    }
}




